/**
 * 
 */
package org.cuatropvientos.searchmap;

import java.util.Random;

/**
 * @author david_madurga
 *
 */
public class SearchMap {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String[][] map= new String[10][10];
		Random rnd = new Random();
		
		
		for (int i = 0; i<map.length;i++) {
			for (int j = 0; j < map[i].length;j++ ) {
				map[i][j]=" ";
								
			}
		}
		
		System.out.print("  ");
		map[rnd.nextInt(10)][rnd.nextInt(10)]="X";
		for(int j =0;j<10;j++ ){
			System.out.print(j+"  ");
		}
		for (int i = 0; i< map.length; i++) {
			System.out.println();
			System.out.print(i);
			
			for (int j = 0; j < map[i].length; j++){
				
				
				System.out.print("["+ map[i][j]+"]");
				
			}
			
			
			
		}
		
		
		
		
		
	}

}
